package com.rongke.service;

import com.baomidou.mybatisplus.service.IService;
import com.rongke.model.Coupon;
import com.rongke.model.CouponUser;

import java.util.List;

/**
 * @CouponUserService
 * @用户和优惠券中间Service
 * @version : Ver 1.0
 */
public interface CouponUserService extends IService<CouponUser>{

    /**
     * 给某用户发放优惠券
     * @param muserId
     * @param coupons
     * @param source
     * @return
     */
    List<CouponUser> releaseCouponsForMuser(Long muserId, List<Coupon> coupons, Integer source);
}
